package com.tb.tbv1productservice.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.tb.v1.api.shoop.ISpGoodsAttrService;
import com.tb.v1.api.shoop.ISpGoodsPicsService;
import com.tb.v1.api.shoop.ISpGoodsService;
import com.tb.v1.api.vo.SpGoodsVo;
import com.tb.v1.common.base.BaseServiceImpl;
import com.tb.v1.common.base.IBaseDao;
import com.tb.v1.entity.SpGoods;
import com.tb.v1.entity.SpGoodsAttr;
import com.tb.v1.mapper.SpGoodsMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author: tangBin
 * @Date: 2020/7/22 0022 12:02
 * @Description:
 */
@Service
public class SpGoodsService extends BaseServiceImpl<SpGoods> implements ISpGoodsService {
    @Autowired
    private SpGoodsMapper spGoodsMapper;
    @Override
    public IBaseDao<SpGoods> getBaseDao() {
        return spGoodsMapper;
    }

    @Override
    public List<SpGoods> getGoodList(Map map) {
        return spGoodsMapper.getGoodList(map);
    }

    @Override
    public Integer getGoodListCount(Map map) {
        return spGoodsMapper.getGoodListCount(map);
    }

}
